package order.dao.persist.repository.impl;

import lombok.extern.slf4j.Slf4j;
import order.dao.persist.mapper.OrderMapper;
import order.dao.persist.repository.IOrderRepository;
import order.pojo.entity.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 处理订单数据的存储库实现类
 *
 * @author java@tedu.cn
 * @version 2.0
 */
@Slf4j
@Repository
public class OrderRepositoryImpl implements IOrderRepository {


    @Autowired
    private OrderMapper orderMapper;
    @Override
    public int insert(Order order) {
        log.debug("开始执行新增订单");
        return orderMapper.insertOrder(order);
    }
}
